home *** CD-ROM | disk | FTP | other *** search
- global gDVExitLock
-
- on WIN_QT_Init
- mci("capability QTWVideo can play ")
- if the result = "true" then
- set vRetValue to 1
- else
- set vRetValue to 0
- end if
- put vRetValue
- return vRetValue
- end
-
- on WIN_QT_Done
- end
-
- on WIN_QT_Use aFName
- set vHWnd to gSIUtils(mGetNamedWindowHdl, "Stage")
- set gDVExitLock to the exitLock
- set the exitLock to 0
- mci("open " & aFName & ".mov type QTWVideo alias dvvid parent " & vHWnd & " style child")
- end
-
- on WIN_QT_Play aFrom, aTo
- global gDVFullScreen
- set vCmd to "play dvvid from " & aFrom
- if aTo <> -1 then
- set vCmd to vCmd & " to " & aTo
- end if
- mci(vCmd)
- end
-
- on WIN_QT_Pause
- mci("pause dvvid")
- end
-
- on WIN_QT_PauseP
- mci("status dvvid mode")
- if the result = "paused" then
- return 1
- else
- return 0
- end if
- end
-
- on WIN_QT_Stop
- mci("stop dvvid")
- end
-
- on WIN_QT_StopP
- mci("status dvvid mode")
- if the result = "Stopped" then
- return 1
- else
- return 0
- end if
- end
-
- on WIN_QT_Resume
- mci("resume dvvid")
- end
-
- on WIN_QT_SetPos aPos
- mci("seek dvvid to " & aPos)
- end
-
- on WIN_QT_GetPos
- mci("status dvvid position")
- return value(the result)
- end
-
- on WIN_QT_PlayP
- mci("status dvvid mode")
- if the result = "playing" then
- return 1
- else
- return 0
- end if
- end
-
- on WIN_QT_SetPlayArea aX, aY, aW, aH
- mci("put dvvid window at " & aX & " " & aY & " " & aW & " " & aH)
- end
-
- on WIN_QT_FullScreen aFlag
- end
-
- on WIN_QT_FullScreenP
- return 0
- end
-
- on WIN_QT_FrameRate
- mci("status dvvid nominal frame rate")
- return value(the result) / 1000
- end
-
- on WIN_QT_Close
- mci("close dvvid")
- set the exitLock to gDVExitLock
- end
-
- on WIN_QT_Idle
- nothing()
- end
-
- on WIN_QT_Show
- mci("window dvvid state show")
- end
-
- on WIN_QT_Hide
- mci("window dvvid state hide")
- end
-